package com.monlyu.action.broadcastError;

import java.util.Date;

import com.monlyu.action.PageAction;
import com.monlyu.bean.Pages;
import com.monlyu.bo.BroadcastErrorBo;
import com.monlyu.vo.BroadcastError;

/*******************************************************************************
 * 
 * <b>功能描述☞</b>新闻播出差错管理<br>
 * 
 * <b>开发公司☞</b>重庆唯尼科技有限公司<br>
 * <b>版权☞</b>本文件归重庆唯尼科技有限公司所有<br>
 * <b>项目名☞</b>news<br>
 * <b>文件路径☞</b>com.monlyu.action.broadcastError.SearchBroadcastErrorAction.java<br>
 * <b>开发日期☞</b>2010-2-22 <br>
 * 
 * @author chendan
 * @since JDK 5
 * @version 1.0.8
 * 
 ******************************************************************************/
public class SearchBroadcastErrorAction extends PageAction {
	private BroadcastError broadcastError;
	private BroadcastErrorBo broadcastErrorBo;
	private Pages<BroadcastError> bcErrorPages;
	private Date beginDate;
	private Date endDate;

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public BroadcastError getBroadcastError() {
		return broadcastError;
	}

	public void setBroadcastError(BroadcastError broadcastError) {
		this.broadcastError = broadcastError;
	}

	public Pages<BroadcastError> getBcErrorPages() {
		return bcErrorPages;
	}

	public void setBcErrorPages(Pages<BroadcastError> bcErrorPages) {
		this.bcErrorPages = bcErrorPages;
	}

	public void setBroadcastErrorBo(BroadcastErrorBo broadcastErrorBo) {
		this.broadcastErrorBo = broadcastErrorBo;
	}

	@Override
	public String execute() throws Exception {
		return view("listBroadcastError.jsp");
	}

	public String search() {
		bcErrorPages = broadcastErrorBo.searchBE(getDefPage(),broadcastError,beginDate,endDate);
		return view("listBroadcastError.jsp");
	}

}
